import request from "@/utils/request";

export function getWordScreen(params) {
  return request.get("/admin/localVideo/getWordScreen", { params });
}

export function getWordScreenItem(id) {
  return request.get("/admin/localVideo/getWordScreenItem", { params: { id } });
}

export function saveWordScreenItem(data) {
  return request.post("/admin/localVideo/saveWordScreenItem", data);
}

export function clearWordScreen(videoId) {
  return request.get("/admin/localVideo/clearWordScreen", {
    params: { videoId }
  });
}

export function getVideo(id) {
  return request.get("/admin/localVideo/one/id/" + id);
}

export function trans(sentence) {
  return request.get("/admin/localVideo/trans", { params: { sentence } });
}

// 字幕提交审核
export function supplyWordScreen(videoId) {
  return request.get("/admin/localVideo/supplyWordScreen", {
    params: { id: videoId }
  });
}

// 通过审核
export function sureWordScreen(videoId) {
  return request.get("/admin/localVideo/sureWordScreen", {
    params: { id: videoId }
  });
}

export function sendBackWordScreen(videoId) {
  return request.get("/admin/localVideo/sendBackWordScreen", {
    params: { id: videoId }
  });
}

export function delWordScreen (id) {
  return request.get("/admin/localVideo/removeWordScreen", {
    params: {id: id}
  })
}
export function downWordScreen(videoId){
  return request.get('/admin/localVideo/downloadWordScreen', {
    params: {id: videoId}
  })
}